package com.ruoyi.biz.domain;


import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.ihome.domain.IhHome;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 预约对象 ih_appoint
 * 
 * @author ruoyi
 * @date 2024-08-13
 */
@Component
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Appoint extends BaseEntity
{
    private static final long serialVersionUID = 1L;
    @TableId
    /** 预约id */
    private Long id;

    /** 房间id */
    @Excel(name = "房间id")
    private Long houseId;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date appointTime;

    /** 称呼 */
    @Excel(name = "称呼")
    private String name;

    /** 联系方式 */
    @Excel(name = "联系方式")
    private String contact;


    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private Integer deleted;

    //一对一
    //用户
    private SysUser sysUser;

    //一对一
    //房间
    private IhHome house;

}
